Skip to content

Add test for remote worker path resolution#97

Merged
furtib merged 7 commits intoEricsson:mainfrom
furtib:test-plist-resolution-regex
May 1, 2026
Merged

Add test for remote worker path resolution#97
furtib merged 7 commits intoEricsson:mainfrom
furtib:test-plist-resolution-regex

Conversation

@furtib
Copy link
Copy Markdown
Contributor

@furtib furtib commented Oct 13, 2025

Why:
We want to test our solutions for making remote workers' absolute paths into locally usable relative paths. We should add a test for it.

What:
Adds a new test to run on pre-created remote worker paths.

Addresses:
#65

@furtib furtib requested a review from Szelethus October 13, 2025 09:13
@furtib furtib self-assigned this Oct 13, 2025
@furtib furtib added the test ☑️ Adding or refactoring tests label Oct 13, 2025
@furtib furtib force-pushed the test-plist-resolution-regex branch from d3dfa6b to 761121e Compare October 13, 2025 09:18
Copy link
Copy Markdown
Contributor

@Szelethus Szelethus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with creating/removing the tmp directory with a class level setup/teardown, but by having a global PATH_RESOLUTION, you practically do 90% of the test in those methods. In fact, I'm not even sure the way you are testing there is a need for creating any files. I recommend that you simply test the string replace, which is all that really matters here.

Comment thread test/unit/plist_res/test_path_resolution.py Outdated
Comment thread src/codechecker_script.py Outdated
@furtib furtib requested a review from Szelethus October 13, 2025 12:46
@furtib furtib force-pushed the test-plist-resolution-regex branch from bea98fe to 7d4745a Compare October 14, 2025 11:08
Copy link
Copy Markdown
Contributor

@Szelethus Szelethus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, this is what I wanted to see! I have some nits, but otherwise this is a great PR.

Comment thread src/codechecker_script.py Outdated
Comment thread test/unit/plist_res/test_path_resolution.py Outdated
@furtib furtib requested a review from Szelethus October 20, 2025 13:07
@furtib furtib force-pushed the test-plist-resolution-regex branch from 1a9a825 to 5d312a2 Compare November 24, 2025 12:34
Copy link
Copy Markdown
Contributor

@Szelethus Szelethus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, though I believe pylint will catch this. Please rebase.

@furtib furtib force-pushed the test-plist-resolution-regex branch from 5d312a2 to d4ce1b3 Compare April 30, 2026 18:45
@furtib furtib merged commit 4966190 into Ericsson:main May 1, 2026
21 of 23 checks passed
@furtib furtib deleted the test-plist-resolution-regex branch May 1, 2026 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test ☑️ Adding or refactoring tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants